<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags" %>  
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %> 
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="en">
	<head>
		
	</head>

	<body class="no-skin">
		
					<!-- /section:settings.box -->
					<div class="page-content-area">
					<ul class="breadcrumb">
						<li>
							<i class="ace-icon fa fa-home home-icon"></i>
							<a href="#">管理考试科目</a>
						</li>
						
						<li>
							<a href="#">添加科目</a>
						</li>
					</ul><!-- /.breadcrumb -->
						<div class="row">
							<div class="col-xs-12">
								<!-- PAGE CONTENT BEGINS -->
								<form:form id="subForm" action="addSub" method="post" modelAttribute="sub" class="form-horizontal" role="form">
									<!-- #section:elements.form -->
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 科目编号 </label>

										<div class="col-sm-9">
											<form:input path="id" cssClass="{required:true}"/><form:errors path="id" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>

									<!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1">科目名 </label>

										<div class="col-sm-9">
											<form:input path="name" cssClass="{required:true }"/><form:errors path="name" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>
									
									<!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 科目描述 </label>

										<div class="col-sm-9">
											<form:input path="description" cssClass="{required:true }"/><form:errors path="description" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>
									
									<!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 科目题数 </label>

										<div class="col-sm-9">
											<form:input path="test_count" cssClass="{required:true }"/><form:errors path="test_count" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>
									
									<!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 总时长 </label>

										<div class="col-sm-9">
											<form:input path="total_time" cssClass="{required:true }"/><form:errors path="total_time" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>
									
									<!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 满分总分 </label>

										<div class="col-sm-9">
											<form:input path="total_score" cssClass="{required:true }"/><form:errors path="total_score" cssClass="error" cssStyle="color:red;" />
										</div>
									</div>
									
		                             <!-- /section:elements.form -->
									<div class="space-4"></div>
									
									<div class="form-group">
										<label class="col-sm-3 control-label no-padding-right" for="form-field-1"> 是否开启考试 </label>

										<div class="col-sm-9">
											<!--<form:input path="status" cssClass="{required:true }"/><form:errors path="status" cssClass="error" cssStyle="color:red;" />-->
											<input type="radio" name="status" value="1"/>开启 
											<input type="radio" name="status" value="0" checked="checked"/>关闭
										</div>
									</div>

									<!-- /section:elements.form -->
									<div class="space-4"></div>

									
										<div class="col-md-offset-3 col-md-9">
											<button class="btn btn-info" type="submit">
												<i class="ace-icon fa fa-check bigger-110"></i>
												Submit
											</button>

											&nbsp; &nbsp; &nbsp;
											<button class="btn" type="reset">
												<i class="ace-icon fa fa-undo bigger-110"></i>
												Reset
											</button>
										</div>
									
                                     </form:form>
									<div class="hr hr-24"></div>

									<script type="text/javascript">
      $().ready(function(){
    	  $("#subForm").validate();
      });
      </script>
      </div>
      </div>
      </div>
      
			

		
	</body>
</html>